const ffmpeg = require('fluent-ffmpeg')

ffmpeg()
.input('./images2/img%d.png')
// .input('./temp/logo%d.png')
.videoCodec('mpeg4')
.inputFPS(50)
.on('end', () => {
  console.log('video one done')
})
.on('error', (e) => {
  console.log('error happend:' + e)
})
.save('./res.mp4')